﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="zxx" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>Ayurvedic - Medical Template</title>

    <link rel="shortcut icon" type="image/x-icon" href="assets/images/cropped-favicon-32x32.png"/>

    <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

    <link href="assets/css/style.css" rel="stylesheet" type="text/css"/>

    <link href="assets/css/plugin.css" rel="stylesheet" type="text/css"/>

    <link href="assets/css/dashboard.css" rel="stylesheet" type="text/css"/>

    <link href="assets/fonts/flaticon.css" rel="stylesheet" type="text/css"/>

    <link href="assets/css/icons.css" rel="stylesheet" type="text/css"/>

    <link rel="stylesheet" href="assets/fonts/line-icons.css" type="text/css"/>
    <link rel="stylesheet" href="common/font-awesome/css/font-awesome.min.css">
</head>
<body>

<div id="preloader">
    <div id="status"></div>
</div>


<div th:replace="common/common-bar::#header"></div>

<div id="dashboard">
    <div class="container">
        <div class="dashboard-main">
            <div class="row">
                <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
                    <div th:replace="common/common-bar::#dashboard-sidebar(cur='illness')"></div>
                </div>
                <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
                    <div class="dashboard-content">
                        <div class="dashboard-form mb-4">
                            <div class="row">

                                <div class="col-lg-12 col-md-12 col-xs-12 padding-right-30">
                                    <div class="dashboard-list">
                                        <h4 class="gray">疾病信息</h4>
                                        <div class="dashboard-list-static">

                                            <div class="my-profile">
                                                <div class="form-group">
                                                    <label>疾病名称</label>
                                                    <input id="illnessName" th:value="${illness.illnessName}" type="text"/>
                                                    <input style="display: none" id="id" th:value="${illness.id}" type="text"/>
                                                </div>

                                                <div class="form-group">
                                                    <label>引起的原因</label>
                                                    <input id="includeReason" type="text" th:value="${illness.includeReason}"/>
                                                </div>

                                                <div class="form-group">
                                                    <label>主要的症状</label>
                                                    <textarea id="illnessSymptom" style="height: 100px" th:text="${illness.illnessSymptom}"></textarea>
                                                </div>

                                                <div class="form-group">
                                                    <label>特殊的症状</label>
                                                    <textarea id="specialSymptom" style="height: 100px" th:text="${illness.specialSymptom}"></textarea>
                                                </div>

                                                <div class="form-group">
                                                    <label>疾病分类</label>
                                                    <select id="kindId" class="niceSelect">
                                                        <option th:if="${illness.kindId != null and illness.kindId == kind.id}" th:each="kind: ${kinds}" th:value="${kind.id}" th:text="${kind.name}"> </option>
                                                        <option th:each="kind: ${kinds}" th:value="${kind.id}" th:text="${kind.name}"> </option>
                                                    </select>
                                                </div>

                                                <div th:if="${illness.createTime != null}" class="form-group">
                                                    <label>创建时间</label>
                                                    <input style="background: #ecf0f1" disabled type="text" th:value="${#dates.format(illness.createTime, 'yyyy-MM-dd HH:mm:ss')}"/>
                                                </div>

                                                <div th:if="${illness.updateTime != null}" class="form-group">
                                                    <label>修改时间</label>
                                                    <input style="background: #ecf0f1" disabled type="text" th:value="${#dates.format(illness.updateTime, 'yyyy-MM-dd HH:mm:ss')}"/>
                                                </div>

                                            </div>
                                            <div>
                                                <button class="btn btn-na" onclick="saveIllness()">保存</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>

<div th:replace="common/common-bar::#back"></div>

<div th:replace="common/common-bar::#footer"></div>

<div th:replace="common/common-bar::#search"></div>

<div th:replace="common/common-bar::#back-to-top"></div>

<script src="assets/js/jquery-3.5.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/plugin.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/custom-nav.js"></script>
<script src="assets/js/jpanelmenu.min.js"></script>
<script src="assets/js/dashboard-custom.js"></script>
<script src="common/utils/reg.js"></script>
<script src="common/layer/layer.js"></script>
<script src="common/custom.js"></script>
</body>
</html>
